Expand description

Handling of blobs that may be compressed, based on an 8-byte magic identifier at the head.

Enums

A possible bomb was encountered.

Constants

A recommendation for the bomb limit for code blobs.

Functions

Encode a blob as compressed. If the blob’s size is over the bomb limit, this will not compress the blob, as the decoder will not be able to be able to differentiate it from a compression bomb.
Decode a blob, if it indicates that it is compressed. Provide a bomb_limit, which is the limit of bytes which should be decompressed from the blob.